<form action="${CONTEXT_PATH}/m/feedback/update" method="post" id="feedback_reply" class="form-horizontal">
    <input type="hidden" name="m.uuid" value="${m.uuid}"/>
    <input type="hidden" name="m.isreply" value="1"/>
    ${token}
    <table class="table table-bordered table-striped">
        <tr>
            <td width="20%">内容</td>
            <td width="50%">
                ${m.text!}
            </td>
            <td width="30%">
                <span class="status"></span>
            </td>
        </tr>
        <tr>
            <td>回复内容</td>
            <td>
                <textarea rows="3" name="m.reply" class="form-control">${m.reply!}</textarea>
            </td>
            <td>
                <span class="status"></span>
            </td>
        </tr>
    </table>

</form>
<script type="text/javascript">
    jQuery("#feedback_reply").ready(function () {
        $(this).find("[name='m.liveflag']").val("${m.liveflag!}");
        // 定义验证参数
        var validateOptions = $.extend(CONST_VALIDATE.OPTION, {
            rules: {
                "m.text": {
                    required: true
                }
            },
            messages: {
                "m.text": {
                    required: "<i class='fa fa-exclamation tooltips'></i>必须输入回复内容",
                }
            },
            submitHandler:function(form) {
                var modal = $("#ajax_update");
                $(form).ajaxSubmit(function (data, status, xhr) {
                    if (data.status) {
                        toastr.success(data.msg, '操作提示');
                    } else {
                        toastr.error(data.msg, '操作提示');
                    }
                });
                $(modal).modal('hide');
                dtgrid.load();
            }
        });
        //表单验证
        $("#feedback_reply").validate(validateOptions);
    });
</script>